//
//  Utils.h
//  Audian
//
//  Created by BXChinh on 12/25/13.
//  Copyright (c) 2013 Vũ Văn Long. All rights reserved.
//

#import <Foundation/Foundation.h>
//#import "PrizeHistory.h"
@interface Utils : NSObject

+ (void) showAlertViewWithTitle:(NSString*)aTitle withMessage:(NSString*)aMessage ;
+(void) showAlertViewWithTitle:(NSString*)aTitle withMessage:(NSString*)aMessage andTag:(NSInteger)tag andDelegate :(id)delegate;
+ (BOOL) checkNetworkWithPopUp;
+ (BOOL) checkNetwork;
+ (id)objectForKeyNotNull:(id)key andDictionnary:(NSDictionary*)dic;
+ (int)dayLeftFromNow:(NSDate*)aDate;
+ (NSDate*)getDateTimeAtZeroTime:(NSString *)strDate ;
+ (NSString*)timeStringLeftFromNow:(NSDate*)aDate;
+ (NSDate *)getDateFromString:(NSString *)dateString;
+ (NSString*)stringFromDate:(NSDate*)date withFormat:(NSString*)format;
+ (BOOL) validateEmail: (NSString *) candidate ;
+ (NSDate *)serverTimeToDeviceTime:(NSDate*)aDate;
+  (NSDate*)getDateYesterday;


+(void)setTypeScreen:(int)value;
+(int)getTypeScreen;
+(void)setCurrentType:(int)type;
+(NSInteger)getCurrentType;
+(BOOL)getMainScreen;
+(void)setMainScreen:(BOOL)value;
+ (NSString *)uniqueVendor;

+(NSString *)getLoadZone;
+(NSString *)getISO;
+(void)SetISO:(NSString *)iso andLoadZone:(NSString *)loadzone;
@end
